package com.ruoyi.project.cms.pro.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ruoyi.project.cms.pro.mapper.ProTypeMapper;
import com.ruoyi.project.cms.pro.domain.ProType;
import com.ruoyi.project.cms.pro.service.ProTypeService;

import java.util.List;

/**
 *com.ruoyi.project.cms.pro.service
 *作者：lh
 描述:
 *时间:2020-05-20
 */
@Service
public class ProTypeServiceImpl implements ProTypeService{

    @Resource
    private ProTypeMapper proTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer proTypeId) {
        return proTypeMapper.deleteByPrimaryKey(proTypeId);
    }

    @Override
    public int insert(ProType record) {
        return proTypeMapper.insert(record);
    }

    @Override
    public ProType selectByPrimaryKey(Integer proTypeId) {
        return proTypeMapper.selectByPrimaryKey(proTypeId);
    }

    @Override
    public int updateByPrimaryKey(ProType record) {
        return proTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ProType> selectAll() {
        return proTypeMapper.selectAll();
    }

}
